@font-face {
    font-family: "Clear Sans";
    src: url('../scss//clear-sans.ttf') format('truetype');
  }
  
  body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    font-family: "Clear Sans", sans-serif;
    font-size: 21px;
  }
  
  .text {
    order: 2;
    padding-top: 40px;
    width: 440px;
    font-weight: bold;
  }
  
  .board {
    order: 1;
    width: 440px;
    height: 440px;
    padding: 5px;
    background-color: #baa;
    border-radius: 7px;
    outline: none;
    position: relative;
  }
  
  .board .cell, .tile {
    user-select: none;
    cursor: default;
  }
  
  .cell, .tile {
    width: 100px;
    height: 100px;
    margin: 5px;
    line-height: 90px;
    display: inline-block;
    font-size: 55px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    border-radius: 7px;
    font-family: "Clear Sans";
    color: #766;
    background-color: #dcb;
  }
  
  .tile0 {
    background-color: #dcb;
  }
  
  .tile2 {
    background-color: #eee;
  }
  
  .tile4 {
    background-color: #eec;
  }
  
  .tile8 {
    color: #ffe;
    background-color: #fb8;
  }
  
  .tile16 {
    color: #ffe;
    background-color: #f96;
  }
  
  .tile32 {
    color: #ffe;
    background-color: #f75;
  }
  
  .tile64 {
    color: #ffe;
    background-color: #f53;
  }
  
  .tile128 {
    color: #ffe;
    background-color: #ec7;
    font-size: 45px;
  }
  
  .tile256 {
    color: #ffe;
    background-color: #ec6;
    font-size: 45px;
  }
  
  .tile512 {
    color: #ffe;
    background-color: #ec5;
    font-size: 45px;
  }
  
  .tile1024 {
    color: #fff;
    background-color: #ec3;
    font-size: 35px;
  }
  
  .tile2048 {
    color: #fff;
    background-color: #ec2;
    font-size: 35px;
  }
  
  .tile {
    position: absolute;
  }
  
  .tile.merged {
    display: none;
  }
  
  .tile.merged.isMoving {
    display: inline;
  }
  
  .tile.new, .overlay {
    animation-duration: 0.20s;
    animation-name: newTile;
    animation-fill-mode: forwards;
    animation-delay: 0.15s;
    transform: scale(0);
  }
  
  @keyframes newTile {
    from {
      transform: scale(0);
    }
  
    to {
      transform: scale(1);
    }
  }
  
  .overlay {
    position: absolute;
    top: 0px;
    bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    left: 0px;
    right: 0px;
    font-size: 55px;
    font-weight: bolder;
    background-color: rgba(221, 221, 221, 0.5);
    border-radius: 7px;
  }
  
  .tryAgain {
    background-color: #876;
    color: #fff;
    height: 40px;
    width: 200px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 5px;
  }
  
  .overlay .message {
    color: #666;
  }
  